#pragma once
#include "character.h"
#include "Sprite.h"
#include "Utils.h"
#include "ListBullet.h"

class CTurret :
	public CCharacter
{
private:
	CSprite *_Sprite;
	bool Flag;
	DWORD frame_start;
	DWORD tick_per_frame;
	int _CurrentFrame;
	bool _IsShootable;
	static int _GunXPosition[12];
	static int _GunYPosition[12];
	static double _ShootAngle[12];
	CListBullet *_ListBullet;
public:
	CTurret(void);
	~CTurret(void);
	void LoadResource();
	void Update(D3DXVECTOR2 ContraPosition);
	void Render(D3DXVECTOR2 ContraPosition);
};

